import { useState } from "react";

function Test() {
    const [d, setD] = useState(1)
    let add = (e=0)=>{
        console.log(d,e);
        setD(d+e)
    }
    return (
        <div onClick={()=>add(2)} className="h-40">井字棋 第{d}天</div>
    );
}

export default Test;
